export function workWithData(k){ // 处理扫描枪返回的数据
	// let k = '1E1F2021222324252627281E1F202122232425262728'
	let arr = []
	let str = ''
	for(let i=0;i<k.length;i++){
		if(i%2==0){
			let obj = {}
			let t = k.substring(i,i+2)
			switch (t) {
			    case '1E':
			        obj.t = 1
			        break;
			    case '1F':
			        obj.t = 2
			        break;
			    case '20':
			        obj.t = 3
			        break;
			    case '21':
			        obj.t = 4
			        break;
			    case '22':
			        obj.t = 5
			        break;
			    case '23':
			        obj.t = 6
			        break;
			    case '24':
			        obj.t = 7
			        break;
			    case '25':
			        obj.t = 8
			        break;
			    case '26':
			        obj.t = 9
			        break;
			    case '27':
			        obj.t = 0
			        break;
			    case '28':
			        obj.t = 'Return'
			        break;
			    // default :
			    //     obj.t = 'Return'
			}
			arr.push(obj)
		}
	}
	arr.map(item=>{
		for (let key in item){
			str+=item[key]
		}
	})
	return str
}
